package com.idriver.service;

import com.idriver.bean.Admin;
import com.idriver.dao.AdminDao;
import com.idriver.factory.AdminsDaoFactory;

public class AdminService {

    AdminDao adminDao = null;

    public AdminService() {
        this.adminDao = AdminsDaoFactory.getAdminDao();
    }

    /**
     *  实现用户登录的服务
     * @param admin
     * @return
     */
    public Admin adminLoginService(Admin admin) {

        return adminDao.login(admin);
    }
}
